
class father {
	
	String home = "shanteri";
	boolean smokes;
	
	String badHabit(int money)
	{
	smokes = true;
	if(smokes==true)
	{
	money--;
		return "pain";
		
	}
	else 
		return "Good father and a happy 1";
	}
}
class son extends father {
	
	boolean akshayplaysgames;
	String badHabit(int money)
	{
		super.smokes = true;
		akshayplaysgames = true;
		if(akshayplaysgames==true)
		{
		return "Sleepless";
		}
		else 
			return "having a goodsleep";
	}
	
}

class Test {
	
	public static void main(String[] args)
	{
		
	son s = new son();
	System.out.println("Akshay is:" +s.badHabit(6));
	} 

}